
#define IN		0
#define HID		1
#define OUT		2

#define ACT		0
#define ERR		1

#define WEIGHT		0
#define DELTA		1
#define PDELTA		2

#define BATCH	0
#define ONLINE	1

#define EPSILON 0.25

#define CONVERGE    1
#define DIVERGE     0
#define CRITICAL  100

extern int make_nn( int in, int hid, int out, int pat );
extern int destroy_nn();
extern int init_units( double min_w, double max_w );
extern double get_unit( int type, int l, int u );
extern int set_unit( int type, int l, int u, double val );
extern double get_link( int type, int tl, int tu, int fl, int fu );
extern int set_link( int type, int tl, int tu, int fl, int fu, double val );
extern double get_pattern( int p, int l, int u );
extern int set_pattern( int p, int l, int u, double val );
extern int set_cpattern( int p, double *iv_p, double *ov_p );

